﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Website/Views/Shared/Website.Master"
    Inherits="System.Web.Mvc.ViewPage<NewsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="search">
        <div class="l">
            <img src="<%=Url.Content("~/WebResources/Images/News.jpg") %>" alt="" />
        </div>
        <div class="r">
            <ul>
                <li>新闻分类:
                    <%=Html.DropDownList("ddlClassify", ClassifyHelper.GetClassifyList(Model.ClassifyList, true))%></li>
                <li>关键字:
                    <%=Html.TextBox("tbKey")%></li>
                <li>
                    <input type="image" id="imgSearch" src="<%=Url.Content("~/WebResources/Images/SearchSubmitNews.jpg") %>" /></li>
            </ul>
        </div>
    </div>
    <div class="list">
        <%foreach (ClassifyEntity ce in Model.ClassifyList) { %>
        <div>
            <dl id="<%=ce.ClassifyId %>">
                <dt>[<%=ce.Title %>]</dt>
            </dl>
        </div>
        <%} %>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title>新闻中心</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
    <link rel="Stylesheet" type="text/css" href="<%= Url.Content("~/Css/Website/News.css") %>" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/Website/News.js") %>"></script>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript">
        window.news_em = '<em><img src="<%=Url.Content("~/WebResources/Images/SmallLoading.gif") %>" /></em>';
        window.news_list_url = '<%=Url.Action("NewsListByClassify", "News", new { classId = "-classid-" }) %>';
        window.news_search_url = '<%=Url.Action("Search", "News", new { PageIndex = 1 }) %>';
        window.news_view_url = '<%=Url.Action("View", new { id = "-id-" }) %>';

        $(function () {
            var n = $(".topBanner .navigator li");
            n.removeClass("current");
            n[3].className = "current";
        });

    </script>
</asp:Content>
